From: Carol (Nichols || Goulding) Date: Sun, 15 May 2016 14:27:40 +0000 (-0400) Subject: Add an ascii directory tree to the project layout section X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~14^2~7^2~8 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=95d253cdbab7ec467e7fa1f7226b3471d177767e;p=cargo.git Add an ascii directory tree to the project layout section --- diff --git a/src/doc/guide.md b/src/doc/guide.md index ffd96005a..d619fe11b 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -211,6 +211,23 @@ Did our date match? true Cargo uses conventions for file placement to make it easy to dive into a new Cargo project: +```shell +. +├── Cargo.lock +├── Cargo.toml +├── benches +│   └── large-input.rs +├── examples +│   └── simple.rs +├── src +│   ├── bin +│   │   └── another_executable.rs +│   ├── lib.rs +│   └── main.rs +└── tests + └── some-integration-tests.rs +``` + * `Cargo.toml` and `Cargo.lock` are stored in the root of your project. * Source code goes in the `src` directory. * The default library file is `src/lib.rs`.